package myfirstproject.firstproject.Service;



import myfirstproject.firstproject.domain.DTO.ArticleDTO;
import myfirstproject.firstproject.domain.DTO.ArticleQueryDTO;
import myfirstproject.firstproject.domain.DTO.ArticleTitleDTO;
import myfirstproject.firstproject.domain.DTO.UserGiveUpDTO;
import myfirstproject.firstproject.domain.VO.ArticleVO;
import myfirstproject.firstproject.domain.po.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import myfirstproject.firstproject.result.PageResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-09-24
 */
public interface IArticleService extends IService<Article> {


    void saveArticle(ArticleDTO articleDTO);

    void updateArticleTitle(ArticleTitleDTO articleTitleDTO);


    PageResult<ArticleVO> queryArticlesPage(ArticleQueryDTO query);

    void addGiveUp(UserGiveUpDTO userGiveUpDTO);

    void cancelGiveUp(UserGiveUpDTO userGiveUpDTO);
}
